x = 10
match x:
    case 1:
        print('x is 1')
    case 2:
        print('x is 2')
    case _:  # 匹配所有其他值
        print('x is not 1 or 2')